package com.hoshiicloud.registered.feign;

import com.hoshiicloud.common.rpc.Response;
import com.hoshiicloud.common.validate.ValidGroupAdd;
import com.hoshiicloud.registered.feign.hystrix.HystrixVericenterFeignFallbackImpl;
import com.hoshiicloud.user.param.company.CompanyAddParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author MarkerCCC
 * @date 2019/9/12 - 11:40
 */
@FeignClient(name = "hoshiicloud-user", fallback = HystrixVericenterFeignFallbackImpl.class)
public interface UserService {

    /**
     * 租户注册
     *
     * @param param param
     * @return Response
     */
    @PostMapping("/company/company/companyRegister")
    Response companyRegister(@RequestBody @Validated(value = ValidGroupAdd.class) CompanyAddParam param);
}
